package com.mojiayi.learn.swagger2.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@ApiModel(value = "课程对象", description = "一个简单的课程信息对象")
public class Course implements Serializable {
    @ApiModelProperty(value = "课程id", example = "123", hidden = true)
    private Long id;
    @ApiModelProperty(value = "课程名", example = "作为示例的课程名", required = true)
    private String title;
    @ApiModelProperty(value = "课程价格", example = "1000", required = true)
    private BigDecimal price;
}
